package com;

import com.pojo.Man;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.ApplicationContext;

/**
 * 引导类
 * 相当于Spring核心配置类
 */
@SpringBootApplication
//用于将Man类中的属性映射到Man对象中，先将Man类注入到Bean容器中，所以被替代
//@EnableConfigurationProperties(Man.class)
public class AppApplication {
    public static void main(String[] args) {
        ApplicationContext app = SpringApplication.run(AppApplication.class);
    }

}
